//
//  PublicGetBindUserApi.m
//  SampleProject
//
//  Created by ZhangYeKun on 2017/3/10.
//  Copyright © 2017年 Fidetro. All rights reserved.
//

#import "PublicGetBindUserApi.h"

@implementation PublicGetBindUserApi{
    NSDictionary *_dic;
}

- (instancetype)initWithDic:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"/device/get_device_bind_user";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic=[NSMutableDictionary getPubdic];
    
    if (_dic[@"device_id"]) {
        [dic setObject:_dic[@"device_id"] forKey:@"device_id"];
        
    }
    
    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;
}

@end
